/*
* @Author: majingyu
* @Date:   2017-04-24 17:25:18
* @Last Modified by:   jingyu.ma
* @Last Modified time: 2017-08-12 18:04:11
*/

import { getItem } from 'common/storage';
let state = {
    app:{ //应用状态
        codeToken:null,
        nowPage:'login',
        mainNowPage:'main',
        eidtModalShow:false,
        publishShow: false,
        city:'北京',
        cityId:'110100',
        cityList:''
    },
    services:{//服务信息
        activeKey: '1',
        orderPage: false,
        couriersType:'',//课程id(首页跳转需求课程)
        couriersName:'',//课程名称
        nearListList:{//周边服务信息
            list: [],
            pageNo: 1,
            total:''
        },
        servicesCalssifyList: {//分类信息
            list: [],
            pageNo: 1,
            total:''
        },
        calssListCheck:{//分类列表选择的名称和对应ID
            id: '',
            name: '',
        },
        getMyInviteList:{//被邀请的列表
            list:[],
            pageNo:1,
            total:''
        },
        historyPage:'1',//历史地址是需求还是技能（1：代表需求，2：代表技能        sortList:[],
        detail:{},
        serviceId:'',
        orderPage: false,
        nearSkillList:{//周边服务信息
            list: [],
            pageNo: 1,
            total:''
        },
        //需求列表
        demandList:{
            list: [],
            pageNo:1,
            total:''
        },
        varfilterList: [],
        sortList:[],
        detail:{},
        serviceId:'',
        serviesMobile: false,
        skillMobile: false
    },
    orders:{//订单信息
        orderId:'',
        orderDetail:{},
        ordersList:{//我的订单信息
            list: [],
            pageNo: 1
        }
    },
    user:{//用户信息
        evaluate:'提交意见',
        userId:''
    },
    myPublish:{
        publishPlist:{
            list: [],
            pageNo: 1
        },
        myDemand: {
            list:[],
            pageNo:1
        },
        mySkill: {
            list:[],
            pageNo:1
        }
    },
    publishService: {//发布信息需要的参数
        time: {//时间选项
            date: new Date(),
            times: '',
            isOpen: false ,
            isOpenTime: false,
            periodOfValidity: 7
        },
        address: [
            {
                id: 0,
                name: '老师家'
            },
            {
                id: 1,
                name: '学生家'
            },
            {
                id: 2,
                name: '双方商量'
            }
        ]
    },
    commont: {
        commontText:'提交评论',
        commontId: '',
        commontList: {
            list:[],
            pageNo:1
        },
        goCommontId:''
    },
    notice: {
        noticeList: {
            list:[],
            pageNo:1
        }
    }
}

export default state;
